//
//  AddIncomeViewController.h
//  Wallets Manager
//
//  Created by Tung Nguyen on 9/26/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DataBaseAccess.h"
#import "SelectIncomeCategory.h"
#import "TapkuLibrary.h"
#import "SelectPlanViewController.h"
#import "IncomeType.h"
#import "Plan.h"
#import "folyAppDelegate.h"
#import "AJNotificationView.h"
@interface AddIncomeViewController : UIViewController<TKCalendarMonthViewDataSource,TKCalendarMonthViewDelegate,UITextFieldDelegate, UIActionSheetDelegate>
{
    NSString *currentImageStr;
    Plan *currentPlan;
    IncomeType *currentIncomeType;
    
    UITextField *activeTextField;
    UIButton *buttonDone ;
    BOOL isDoneShouldHidden;
}


@property (retain, nonatomic) NSString *dateString;
@property (weak, nonatomic) IBOutlet UILabel *headerTextField;

@property (weak, nonatomic) IBOutlet UITextField *incomeNameTextField;
@property (weak, nonatomic) IBOutlet UILabel *categoryLabel;
@property (weak, nonatomic) IBOutlet UITextField *categoryTextField;
@property (weak, nonatomic) IBOutlet UIImageView *categoryImageView;
@property (weak, nonatomic) IBOutlet UITextField *amountTextField;
@property (weak, nonatomic) IBOutlet UITextField *dateTextField;
@property (weak, nonatomic) IBOutlet UITextField *planTextField;
@property (weak, nonatomic) IBOutlet UIImageView *planImageView;
@property (weak, nonatomic) IBOutlet UIButton *addButton;


@property (weak, nonatomic) NSString *kindOfView;
@property (strong, nonatomic) Income *currentIncome;

@property (weak, nonatomic) IBOutlet UITextField *noteTextField;
@property (retain, nonatomic) UIActionSheet *pickerViewPopup;
@property (weak, nonatomic) IBOutlet UITextField *walletNameTextField;
@property (strong,nonatomic) TKCalendarMonthView *monthViewCalendar;

- (IBAction)backButtonPressed:(id)sender;
- (IBAction)addButtonPressed:(id)sender;
-(void)popUpRefreshFrame;
- (void) createDatePickerView;
- (void)addButtonToKeyboard;

@end
